import request from '@/utils/request'

// 查询用户投票记录列表
export function listVoteRecord(query) {
  return request({
    url: '/business/voteRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户投票记录列表
export function listVoteRecordDto(query) {
  return request({
    url: '/business/voteRecord/listVoteRecordDto',
    method: 'get',
    params: query
  })
}
// 查询用户投票记录详细
export function getVoteRecord(recordId) {
  return request({
    url: '/business/voteRecord/' + recordId,
    method: 'get'
  })
}
// 查询用户投票记录详细
export function getVoteRecordDto(recordId) {
  return request({
    url: '/business/voteRecord/dto/' + recordId,
    method: 'get'
  })
}
// 新增用户投票记录
export function addVoteRecord(data) {
  return request({
    url: '/business/voteRecord',
    method: 'post',
    data: data
  })
}

// 修改用户投票记录
export function updateVoteRecord(data) {
  return request({
    url: '/business/voteRecord',
    method: 'put',
    data: data
  })
}

// 删除用户投票记录
export function delVoteRecord(recordId) {
  return request({
    url: '/business/voteRecord/' + recordId,
    method: 'delete'
  })
}
